Skip to content

Conversation

@subkanthi
Copy link
Collaborator

closes: #92

@subkanthi
Copy link
Collaborator Author

(devbox) kanthi@Kanthis-MacBook-Pro scratch % java -jar ../../ice/target/ice-0.0.0-SNAPSHOT-shaded.jar insert nyc.taxis2 -p https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2025-01.parquet
2026-01-22 14:33:35 [main] WARN o.a.i.rest.ErrorHandlers > Unable to parse error response
java.io.UncheckedIOException: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1]
	at org.apache.iceberg.util.JsonUtil.parse(JsonUtil.java:106)
	at org.apache.iceberg.rest.responses.ErrorResponseParser.fromJson(ErrorResponseParser.java:71)
	at org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.parseResponse(ErrorHandlers.java:194)
	at org.apache.iceberg.rest.HTTPClient.throwFailure(HTTPClient.java:195)
	at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:309)
	at org.apache.iceberg.rest.BaseHTTPClient.get(BaseHTTPClient.java:77)
	at org.apache.iceberg.rest.RESTSessionCatalog.fetchConfig(RESTSessionCatalog.java:1089)
	at org.apache.iceberg.rest.RESTSessionCatalog.initialize(RESTSessionCatalog.java:261)
	at org.apache.iceberg.rest.RESTCatalog.initialize(RESTCatalog.java:78)
	at com.altinity.ice.cli.Main.loadCatalog(Main.java:680)
	at com.altinity.ice.cli.Main.loadCatalog(Main.java:631)
	at com.altinity.ice.cli.Main.insert(Main.java:382)
	at com.altinity.ice.cli.Main.lambda$1(Main.java:705) [9 skipped]
	at com.altinity.ice.cli.Main.main(Main.java:712) [1 skipped]
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1]
	at org.apache.iceberg.util.JsonUtil.parse(JsonUtil.java:104) [5 skipped]
	at org.apache.iceberg.rest.responses.ErrorResponseParser.fromJson(ErrorResponseParser.java:71)
	at org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.parseResponse(ErrorHandlers.java:194)
	at org.apache.iceberg.rest.HTTPClient.throwFailure(HTTPClient.java:195)
	at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:309)
	at org.apache.iceberg.rest.BaseHTTPClient.get(BaseHTTPClient.java:77)
	... 23 common frames omitted
2026-01-22 14:33:35 [main] ERROR com.altinity.ice.cli.Main > Fatal
java.lang.RuntimeException: Failed to connect to REST catalog at 'http://localhost:5001'. Please check that the catalog server is running and the URL is correct. Configure via: .ice.yaml 'uri' field, ICE_URI env var, or --config flag.
	at com.altinity.ice.cli.Main.loadCatalog(Main.java:682)
	at com.altinity.ice.cli.Main.loadCatalog(Main.java:631)
	at com.altinity.ice.cli.Main.insert(Main.java:382)
	at com.altinity.ice.cli.Main.lambda$1(Main.java:705) [9 skipped]
	at com.altinity.ice.cli.Main.main(Main.java:712) [1 skipped]
Caused by: org.apache.iceberg.exceptions.RESTException: Unable to process: 
	at org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.accept(ErrorHandlers.java:224)
	at org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.accept(ErrorHandlers.java:188)
	at org.apache.iceberg.rest.HTTPClient.throwFailure(HTTPClient.java:225)
	at org.apache.iceberg.rest.HTTPClient.execute(HTTPClient.java:309)
	at org.apache.iceberg.rest.BaseHTTPClient.get(BaseHTTPClient.java:77)
	at org.apache.iceberg.rest.RESTSessionCatalog.fetchConfig(RESTSessionCatalog.java:1089)
	at org.apache.iceberg.rest.RESTSessionCatalog.initialize(RESTSessionCatalog.java:261)
	at org.apache.iceberg.rest.RESTCatalog.initialize(RESTCatalog.java:78)
	at com.altinity.ice.cli.Main.loadCatalog(Main.java:680)
	... 14 common frames omitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

need a user friendly message if the response from rest catalog cannot be parsed.

2 participants